import { lazy } from 'react'

const RouterList = [
    {
        path: '/home',
        component: lazy(() => import('../page/Home')),
        children: [
            {
                path: '/home/homelist',
                name: '列表页',
                component: lazy(() => import('../page/HomeList/index'))
            },
            {
                path: '/home/add',
                name: '添加页',
                component: lazy(() => import('../page/Add/index'))
            },
            {
                to: '/home/homelist',
                from: '/home'
            }
        ]
    },
    {
        to: '/home',
        from: '/'
    }
]

export default RouterList